<%-- 
    Document   : daftarUser
    Created on : 04 Jan 12
    Author     : Zaza
--%>

<%@page import="business.Obat"%>
<%@page import="business.User"%>
<%@page import="business.Order"%>
<%@page import="java.util.Iterator"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="f" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Daftar User</title>
</head>
<body>
<h1>Daftar User</h1>
<a href ="logout">Logout</a>
<table border="1">
<thead>

<tr>
<th>No</th>
<th>Nama</th>
<th>Alamat</th>
</tr>
</thead>
<tbody>
<%
Iterator<User> i = (Iterator<User>) request.getAttribute("daftarUser");
int no = 0;
while(i.hasNext()){
User im= i.next();
no++;
%>

<tr>
<td><%=(no)%></td>
<td><%=(im.getNama_depan())%></td>
<td><%=(im.getalamat())%></td>
<td><a href="deleteUser">Delete</a></td>
</tr>
<%
}
%>
</tbody>
<thead>
<tr>
<th>No</th>
<th>Nama</th>
<th>Alamat</th>
</tr>
</thead>
</table>
</body>

</html>


